/**
 * MyThread
 * @author hoang.pt
 * @version $Id: MyThread.java 99 2010-08-28 15:47:12Z phantichhoang $
 */

package snippet.lab1;

/**
 * MyThread entity
 * @author hoang.pt
 */
public class MyThread extends Thread{
    /**
     * @var String
     */
    String name;

    /**
     * default constructor
     */
    public MyThread() {
        this(null);
    }

    /**
     * constructor
     * @param x
     */
    public MyThread(String x) {
        this.name = x;
    }

    /**
     * Method
     * @author hoang.pt
     */
    @Override
    public void run() {
        //
        System.out.println("This is " +name+ " thread.");
    }

    
}
